package com.gsit.job;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import com.gsit.job.config.AppConfig;
import com.gsit.job.flows.BaseFlow;
import com.gsit.job.flows.LoadAndWriteResume;

public class MainSearchAndLoadApp {
	private static ApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		MainSearchAndLoadApp app = new MainSearchAndLoadApp();
		app.runJobService();
	
	
	}
	
	private void runJobService(){
		BaseFlow jobService = context.getBean(LoadAndWriteResume.class);
		jobService.execute();
	}
	

}
